package main

import (
	"fmt"
	"math/rand"
	"time"
)

var r *rand.Rand = rand.New(rand.NewSource(time.Now().UnixNano()))

//生成4位的标示码,验证码等等
func generateMakeCode() (ret []byte) {
	base := []byte("0123456789abcdefghijklmnopqrstuvwxyz")
	length := len(base)
	for i := 0; i < 4; i++ {
		ret = append(ret, base[r.Intn(length)])
	}
	fmt.Println("ret:", string(ret))
	return
}
func generateInt() {
	for i := 0; i < 10; i++ {
		fmt.Println(r.Intn(100))
	}
}
func main() {
	for i := 1000; i > 0; i-- {
		generateMakeCode()
	}
}
